import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '标题',
    dataIndex: 'title',
    width: 120,
    ellipsis: true,
    resizable: true,
    slots: { customRender: 'title' },
  },
  {
    title: '收件人',
    dataIndex: 'receiversjsRealName',
    width: 100,
    ellipsis: true,
    resizable: true,
  },
  {
    title: '创建时间',
    dataIndex: 'rq',
    width: 160,
    ellipsis: true,
    resizable: true,
  },
  {
    title: '定时',
    dataIndex: 'isSent',
    width: 100,
    ellipsis: true,
    resizable: true,
    customRender: ({ text }) => {
      return text === 1 ? '是' : '否';
    },
  },
  {
    title: '定时发送时间',
    dataIndex: 'sendTime',
    width: 150,
    ellipsis: true,
    resizable: true,
  },
];

export const searchFormSchema: FormSchema[] = [];

export const formSchema: FormSchema[] = [];
